package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.business.Buy;
import com.ruoyi.business.qo.BuyListQO;
import com.ruoyi.business.vo.BuyVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BuyMapper extends BaseMapper<Buy> {
    int deleteByPrimaryKey(Integer id);


    int insertSelective(Buy record);

    Buy selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Buy record);

    int updateByPrimaryKey(Buy record);

    IPage<BuyVO> selectByPage(@Param("page") Page page, @Param("buyListQO") BuyListQO buyListQO);
    List<BuyVO> selectListAll(@Param("buyListQO") BuyListQO buyListQO);
}